//
//  NavigationViewController.m
//  lumihui
//
//  Created by oceans on 2018/9/19.
//  Copyright © 2018年 ios. All rights reserved.
//

#import "NavigationViewController.h"

@interface NavigationViewController ()

@end

@implementation NavigationViewController

- (instancetype)init {
    self = [super init];
    if (self) {
        self.navigationBar.titleTextAttributes = @{NSFontAttributeName: [UIFont boldSystemFontOfSize:17.0]};
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationBar.tintColor = [UIColor whiteColor];
    self.navigationBar.barTintColor = COLOR(201, 21, 29, 1);
    //[UIColor colorWithRed:100/255.0 green:60/255.0 blue:70/255.0 alpha:1.0];
    [[UINavigationBar appearance] setTitleTextAttributes:@{NSFontAttributeName: [UIFont boldSystemFontOfSize:17.0], NSForegroundColorAttributeName:[UIColor whiteColor]}];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
    
    if (self.childViewControllers.count>0) {
        
        viewController.hidesBottomBarWhenPushed  = YES;
    }
    [super pushViewController:viewController animated:animated];
//    viewController.navigationItem.backBarButtonItem.title = @"";
}
@end
